package com.local.carousel.pojo;

public class CarouselListRequestParam {
    //page, limit, sort, order, -1
    private Integer page;//当前页
    private Integer limit;//每页显示个数
    private String sort;//排序字段
    private String order;//排序方式：desc asc
    private Integer isDeleted;//数据isDeleted状态：-1，0，1

    public CarouselListRequestParam() {}

    public CarouselListRequestParam(Integer page, Integer limit, String sort, String order, Integer isDeleted) {
        this.page = page;
        this.limit = limit;
        this.sort = sort;
        this.order = order;
        this.isDeleted = isDeleted;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "ListRequestParam{" +
                "page=" + page +
                ", limit=" + limit +
                ", sort='" + sort + '\'' +
                ", order='" + order + '\'' +
                ", isDeleted=" + isDeleted +
                '}';
    }
}
